package com.cal.utms.entity;

import java.io.Serializable;

import javax.persistence.*;

import com.cal.utms.logAudit.AuditLogInt;
import com.cal.utms.util.ValueConvert;

/**
 * The persistent class for the fund_manager database table.
 * 
 */
@Entity
@Table(name = "fund_manager")
@NamedQuery(name = "FundManager.findAll", query = "SELECT f FROM FundManager f")
public class FundManager implements Serializable, AuditLogInt {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private int id;

	@Column(name = "FM_ADDRESS")
	private String fmAddress;

	@Column(name = "FM_BUSINESS_REG_NO")
	private String fmBusinessRegNo;

	@Column(name = "FM_CODE")
	private String fmCode;

	@Column(name = "FM_EMAIL")
	private String fmEmail;

	@Column(name = "FM_FAX")
	private String fmFax;

	@Column(name = "FM_NAME")
	private String fmName;

	@Column(name = "FM_PHONE")
	private String fmPhone;

	public FundManager() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getFmAddress() {
		return this.fmAddress;
	}

	public void setFmAddress(String fmAddress) {
		this.fmAddress = fmAddress;
	}

	public String getFmBusinessRegNo() {
		return this.fmBusinessRegNo;
	}

	public void setFmBusinessRegNo(String fmBusinessRegNo) {
		this.fmBusinessRegNo = fmBusinessRegNo;
	}

	public String getFmCode() {
		return this.fmCode;
	}

	public void setFmCode(String fmCode) {
		this.fmCode = fmCode;
	}

	public String getFmEmail() {
		return this.fmEmail;
	}

	public void setFmEmail(String fmEmail) {
		this.fmEmail = fmEmail;
	}

	public String getFmFax() {
		return this.fmFax;
	}

	public void setFmFax(String fmFax) {
		this.fmFax = fmFax;
	}

	public String getFmName() {
		return this.fmName;
	}

	public void setFmName(String fmName) {
		this.fmName = fmName;
	}

	public String getFmPhone() {
		return this.fmPhone;
	}

	public void setFmPhone(String fmPhone) {
		this.fmPhone = fmPhone;
	}

	@Transient
	@Override
	public Long getLogId() {
		return ValueConvert.toLong(this.id);
	}

	@Transient
	@Override
	public String getLogDeatil() {
		StringBuilder sb = new StringBuilder();
		sb.append("Fund Manager Id : ").append(id).append("Fund Manager Code : ").append(fmCode);

		return sb.toString();
	}
}